package com.lzp.appexp.service

/**
 * @describe:
 * @Author: lixiaopeng
 * @Date: 2021/5/26
 */
class MyService(port: Int) : NanoHTTPD(port) {

    override fun serve(session: IHTTPSession): Response {
        val method = session.method
        val uri = session.uri
        val parms = session.parms
        println("method："+method)
        println("uri："+uri)
        println("parms"+parms)

        return newFixedLengthResponse(uri)
    }
}